/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdDatasourceTaskInstanceLog;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 数据源数据集成任务实例日志业务对象 isfd_datasource_task_instance_log
 *
 * @author Lion Li
 * @date 2024-10-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdDatasourceTaskInstanceLog.class, reverseConvertGenerate = false)
public class IsfdDatasourceTaskInstanceLogBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 任务ID
     */
    @NotNull(message = "任务ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long taskId;

    /**
     * 请求参数
     */
    @NotBlank(message = "请求参数不能为空", groups = {AddGroup.class, EditGroup.class})
    private String requestData;

    /**
     * 返回参数，记录成功和失败情况
     */
    @NotBlank(message = "返回参数，记录成功和失败情况不能为空", groups = {AddGroup.class, EditGroup.class})
    private String responseData;

    /**
     * 状态，0-成功，1-失败
     */
    @NotNull(message = "状态，0-成功，1-失败不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer status;

    /**
     * 数据迁移总条数
     */
    @NotNull(message = "数据迁移总条数不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long totalNumber;

    /**
     * 数据迁移成功数
     */
    @NotNull(message = "数据迁移成功数不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long successNumber;

    /**
     * 是否删除，0-未删除，1-已删除
     */
    @NotNull(message = "是否删除，0-未删除，1-已删除不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer isDeleted;


}
